package Model;


public class Product
{
    private long productID;
    private long price;
    private String barcode;

    public Product(long productID, long price, String barcode)
    {
        this.productID=productID;
        this.price=price;
        this.barcode=barcode;
        ProductCont.getInstance();
        ProductCont.addProduct(this);
    }

    public void setProductID(long productID)
    {
        this.productID=productID;
    }

    public void setPrice(long price)
    {
        this.price=price;
    }
    
    public void setBarcode(String barcode)
    {
        this.barcode=barcode;
    }
    
    public long getProductID()
    {
        return productID;
    }
    
    public long getPrice()
    {
        return price;
    }
    
    public String getBarcode()
    {
        return barcode;
    }


}
